public class demo11 {
    //两数相加
/*    public int[] twoSum(int[] nums, int target) {
        if(nums.length < 2)
            return null;
        Map<Integer,Integer> map = new HashMap<Integer,Integer>();
        for(int i = 0;i<nums.length;i++)
        {
            if(map.containsKey(target-nums[i]))
            {
                int[] ret = new int[2];
                ret[0] = i;
                ret[1] = map.get(target-nums[i]);
                return ret;
            }
            map.put(nums[i],i);
        }
        return null;
    }*/
}
